<!--
Copyright 2015 Google Inc. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->

<md-toolbar class="kd-toolbar">
  <div class="md-toolbar-tools kd-toolbar-tools">
    <div class="kd-logo-bar">
      <md-icon md-svg-icon="assets/images/kubernetes-logo.svg"
               class="kd-toolbar-logo">
      </md-icon>
      <md-icon md-svg-icon="assets/images/kubernetes-logo-text.svg"
               class="kd-toolbar-logo-text">
      </md-icon>
    </div>
    <kd-search class="kd-search-bar"></kd-search>
    <div class="kd-global-actions">
      <md-button ng-click="$ctrl.create()">
        <md-icon class="kd-global-action-icon">add</md-icon>
        <md-tooltip md-direction="bottom">
          [[Create an application or any Kubernetes resource|Tooltip for global action bar create button tooltip.]]
        </md-tooltip>
        [[Create|Label for global action bar create button.]]
      </md-button>
    </div>
  </div>
</md-toolbar>

<md-toolbar class="kd-second-toolbar">
  <div class="md-toolbar-tools kd-toolbar-tools">
    <kd-nav-hamburger flex="none"></kd-nav-hamburger>
    <kd-breadcrumbs class="kd-actionbar-breadcrumbs"
                    limit="3"
                    flex="auto"
                    layout="row"></kd-breadcrumbs>
    <div flex="auto"
         ui-view="toolbar"></div>
    <kd-actionbar></kd-actionbar>
  </div>
</md-toolbar>

<md-content layout="row"
            class="kd-app-entire-content"
            flex="auto">
  <kd-nav flex="none"></kd-nav>
  <md-content flex="auto"
              class="kd-main-content-box">
    <div ng-switch="$ctrl.loading"
         class="kd-content-div-filled kd-main-content-div">
      <div ng-switch-when="true"
           class="kd-spinner">
        <md-progress-circular ng-if="$ctrl.showLoadingSpinner"
                              md-mode="indeterminate"
                              md-diameter="48">
        </md-progress-circular>
      </div>
      <div ng-switch-when="false"
           class="kd-app-content">
        <div ui-view
             class="md-body-1"
             ng-class="{'kd-content-div-filled': $ctrl.isFillContentView()}"></div>
      </div>
    </div>
  </md-content>
</md-content>
